package com.wudl.ums.service.impl;


import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wudl.ums.entity.OmsOrder;
import com.wudl.ums.mapper.OmsOrderDao;
import com.wudl.ums.service.OmsOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 订单表 Service
 *
 * @author wudl
 */
@Service
public class OmsOrderServiceImpl implements OmsOrderService {

    @Autowired
    private OmsOrderDao omsOrderDao;

    /**
     * 分页查询
     */
    @Override
    public PageInfo<OmsOrder> page(Integer page, Integer size) {
        PageHelper.startPage(page, size);
    //        return PageInfo.of(clazzInfoDao.selectList());
        return null;
    }

    /**
     * 获取
     */
    @Override
    public OmsOrder getById(Integer id) {
        return omsOrderDao.selectById(id);
    }

    /**
     * 保存
     */
    @Override
    public void save(OmsOrder omsOrder) {
        omsOrderDao.insert(omsOrder);
    }

    /**
     * 更新
     */
    @Override
    public void updateById(OmsOrder omsOrder) {
        omsOrderDao.updateById(omsOrder);
    }

    /**
     * 删除
     */
    @Override
    public void removeById(Integer id) {
        omsOrderDao.deleteById(id);
    }

}